package com.aspose.cells;

class zlo extends zlk implements zagk {
   private zaaj e;

   public zlo(zaay var1, zaaj var2, int var3, int var4) {
      super(var1, var3, var4);
      this.e = var2.l();
   }

   public zagi a(zaay var1) {
      return new zlo(var1 == null ? this.a : var1, this.e, this.b, this.c);
   }

   public zagu a(zagu var1) {
      if (this.d) {
         zaaj var2 = this.e.l();
         var2.c(var1);
         return var2;
      } else {
         this.e.c(var1);
         return this.e;
      }
   }

   public zagu a(zagu var1, boolean var2) {
      if (var2) {
         if (var1.c(this.a, true)) {
            return null;
         }
      } else if (this.d && var1.c(this.a, true)) {
         zaaj var4 = this.e.l();
         var4.c(var1);
         return var4;
      }

      this.e.c(var1);
      zagu var3 = this.e.d(this.a);
      return (zagu)(var3.b() == 3 && ((zyy)var3).m() ? zyy.a : var3);
   }
}
